<cfprocessingdirective pageEncoding="utf-8" />
	<cfscript>
	mapping = event.getModelGlue().configuration.APPLICATIONMAPPING;
	
	category = event.getValue('category');
	validator = event.getValue('error', structNew() );
	action = event.linkTo( event.getValue('action') );
	</cfscript>
	
	<cfoutput>
	
    <div class="standardForm">	
        <form action="#action#" method="post">
        
			<fieldset>
	        	<legend>Category</legend>
					
				<input type="hidden" id="Idcategory" name="Idcategory" value="#category.getIdcategory()#" />
				
	            <label for="Name">Name</label>
				<input type="text" id="Name" name="Name" value="#category.getName()#" />
				<cfif structKeyExists( validator, 'Name' ) >
				<span class="formError">#validator['Name'][1]#</span>
				</cfif>
							
	            <label for="Description">Description</label>
				<cfif structKeyExists( validator, 'Description' ) >
				<span class="formError">#validator['Description'][1]#</span>
				</cfif>
				<textarea id="Description" name="Description" rows="5" cols="80" style="width: 80%" class="textareasimple">#category.getDescription()#</textarea>
		
			</fieldset>
			
            <br />
            <div>
                <input type="submit" value="Submit" class="formButton" />
            </div>
			
			<br />
        </form>
    </div>
		
    </cfoutput>
	
